﻿<!DOCTYPE html>
<html>
<head>    
    <title>QuickEdit Helper for WebMatrix - Helper Reference</title>
    <link href="content/site.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
</head>
<body>
    <div class="container">
        <div class="header">
            <img src="content/images/webx-icon.png" alt="WebMatrix" />
            <h1>WebMatrix Helpers</h1>
            <h2>QuickEdit Helper - Reference</h2>
        </div>
        <div class="content">
        <div class="navLinks"><a href="startHere.htm")">Start Here</a></div>                           
        <h3>Helper Methods</h3>
            <table class="memberdecls">
              <tr>
                <td class="memItemLeft">static void</td>
                <td class="memItemRight" ><strong>Initialize</strong> (string connectionString, [string 
                    adminRoleName = &quot;admin&quot;])</td>
              </tr>
              <tr>
                <td class="mdescLeft">&nbsp;</td>
                <td class="mdescRight" >Initializes the QuickEdit helper. The connectionString parameter specifies the database where the editable content will be stored.</td>
              </tr>
              <tr>
                <td class="memItemLeft">@helper</td>
                <td class="memItemRight" ><strong>GetHeaderHtml</strong> ([string htmlEditorFolder])</td>
              </tr>
              <tr>
                <td class="mdescLeft">&nbsp;</td>
                <td class="mdescRight" >Outputs the necessary HTML headers for using the QuickEdit 
                    helper. A folder with custom jHtmlArea files (<a href="http://jhtmlarea.codeplex.com/">http://jhtmlarea.codeplex.com/</a>) 
                    can be specified to customize the content editor.</td>
              </tr>
              <tr>
                <td class="memItemLeft">@helper</td>
                <td class="memItemRight" ><strong>GetContentHtml</strong> (string contentKey, [string SavePage])</td>
              </tr>
              <tr>
                <td class="mdescLeft">&nbsp;</td>
                <td class="mdescRight" >Displays editable content on the page. When the 
                    authenticated user belongs to the Admin role, an Edit button is also displayed.</td>
              </tr>
              <tr>
                <td class="memItemLeft">static string</td>
                <td class="memItemRight" ><strong>GetContent</strong> (string contentKey)</td>
              </tr>
              <tr>
                <td class="mdescLeft">&nbsp;</td>
                <td class="mdescRight" >Retrieves the content data for a specific content key.</td>
              </tr>
              <tr>
                <td class="memItemLeft">static void</td>
                <td class="memItemRight" ><strong>SaveContent</strong> (string contentKey, string contentValue)</td>
              </tr>
              <tr>
                <td class="mdescLeft">&nbsp;</td>
                <td class="mdescRight" >Stores content data into the content storage.</td>
              </tr>
              <tr>
                <td class="memItemLeft">static void</td>
                <td class="memItemRight" ><strong>SaveContentFromPost</strong> ()</td>
              </tr>
              <tr>
                <td class="mdescLeft">&nbsp;</td>
                <td class="mdescRight" >Stores content data sent from a form POST.</td>
              </tr>
              <tr><td class="memItemLeft"></td><td class="memItemRight"></td></tr>        
          </table>                     
      </div>
        <ul class="footer">
        <li>We're always looking for <a href="mailto:webapp@microsoft.com">bugs, feedback and suggestions!</a></li>
            <li>&copy; 2010-2011 Microsoft Corporation. Powered by IIS Express.</li>
        </ul>
    </div>
</body>
</html>
